<!DOCTYPE html>

<html>

	<head>
		<meta charset="UTF-8">
		<title>CRM日志管理</title>
		<script src="js/global1.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/test.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
		$(function(){
			init();
		})
		//初始化
		function init(){
			
			$('#dg').datagrid({    
			    url:globalData.pre+'/SelectLogj',    
			    method:"post",
			    pagination:true,
			    singleSelect:true
			}); 
			
		}
		//后面的操作
		function caozuo(value,row,index){
			return "<a href='javascript:void(0)' onclick='cha("+index+")' class='easyui-linkbutton'>查看</a>   "			
		}
		
		
		
		
		//打开修改面板
		function cha(index){
			var data = $("#dg").datagrid("getData");
			var row = data.rows[index];
			$("#xg").form("load",row);
			$('#upddiv').window('open'); 
		}
		//修改取消
			function quxiao1(){
				$('#upddiv').window('close'); 
			}
		</script>
	</head>
	
	<body>
		
	
		<table id="dg" class="easyui-datagrid"    >   
		     <thead>   
		        <tr>   
		            <th data-options="field:'lid',width:50">编码</th>   
		            <th data-options="field:'ldate',width:200">日志时间</th>   
		            <th data-options="field:'lusname',width:80">员工姓名</th>   
		            <th data-options="field:'loperate',width:90">操作</th>  
		            <th data-options="field:'caozuo',width:90,formatter:caozuo">操作</th>   
		        </tr>   
		    </thead>   
		</table>  	
		
	
	
	<div id="upddiv" class="easyui-window" style="width:350px;height:400px" title="查看面板" data-options="iconCls:'icon-save',modal:true,closable:true,closed:true">  
			<form id="xg" method="post">   
			<table>
			<tr>
			
					<td>
						<label >编号:</label>
					</td>
					<td> 
						<input class="easyui-validatebox" disabled="disabled" type="text" name="lid"  />
					</td>
				</tr>
				<tr>
			
					<td>
						<label >日志时间:</label>
					</td>
					<td> 
						<input class="easyui-validatebox" disabled="disabled"  type="text" name="ldate"  id="ldate" />
					</td>
				</tr>
				
				<tr>
					<td>
						<label >学生id:</label>
					</td>
					<td>
						<input class="easyui-validatebox" disabled="disabled"  type="text" name="lstid"  id="lstid"/>
						
					</td>
				</tr>
				<tr>
					<td>
						<label >学生姓名:</label>
					</td>
					<td>
						<input class="easyui-validatebox" disabled="disabled"  type="text" name="lstname" id="lstname"/>
						
					</td>
				</tr>
				<tr>
					<td>
						<label >员工id:</label>
					</td>
					<td>
						<input class="easyui-validatebox" disabled="disabled"  type="text" name="lusid" id="lusid"/>
						
					</td>
				</tr>
				<tr>
					<td>
						<label >员工姓名:</label>
					</td>
					<td>
						<input class="easyui-validatebox" disabled="disabled"  type="text" name="lusname" id="lusname"/>
						
					</td>
				</tr>
				<tr>
					<td>
						<label >操作:</label>
					</td>
					<td>
						<input class="easyui-validatebox" disabled="disabled"  type="text" name="loperate" id="loperate"/>
						
					</td>
				</tr>
				<tr>
					<td>
						<label >操作信息:</label>
					</td>
					<td>
						<input class="easyui-validatebox" disabled="disabled"  type="text" name="lreserved2" id="lreserved2"/>
						
					</td>
				</tr>
				<tr>
					
					<td>
				</td>
					<td>
					
					<a href="javascript:void(0)" onclick="quxiao1()" class="easyui-linkbutton" >确定</a>
					</td>
				</tr>
			</table>
		</form> 
	</div>
	</body>

</html>